import * as Types from '../actionsTypes';

export const setHomeData = data => ({
  type: Types.SET_DATA,
  data,
});

export const setPower = power => ({
  type: Types.SET_POWER,
  power,
});

export const setToken = token => ({
  type: Types.SET_TOKEN,
  token,
});

export const deleteToken = token => ({
  type: Types.DELETE_TOKEN,
  token,
});

export const setBackImg = img => ({
  type: Types.SET_BACK_IMG,
  img,
});

export const setCaseBook = data => ({
  type: Types.SET_CASEBOOK,
  data,
});

export const addCaseBook = data => ({
  type: Types.ADD_CASEBOOK,
  data,
});
